#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.urls import path
from django.views.decorators.csrf import csrf_exempt
from rest_framework.routers import SimpleRouter

from dvadmin.system.urls import system_url
from .views import *
from django.urls import path
from rest_framework import routers
from redis_d import r
router = SimpleRouter()
router.register("api/vehicle", VehicleInfoModelViewSet)
router.register("api/vehicle_move", VehicleMoveInfoModelViewSet)
router.register("api/vehicle_fault", VehicleFaultInfoModelViewSet)
router.register("api/vehicle_fault_log", VehicleFaultLogModelViewSet)
router.register("api/vehicle_fence", VehicleFenceModelViewSet)

urlpatterns = [
    path('api/vehicle_info/real_data/<str:pk>/', ssss.as_view())
]
urlpatterns += router.urls
